/*!
 * \file ems_ystream.h
 *
 * \brief 相对于ems_xstream，本页函数直接操作char*，可以在后期将这两个方法融合
 *
 * All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.
 *
 * \version 1.0
 * \author songbb
 * \date 2016/10/24
 *
 */

#ifndef __EMS_YSTREAM_H_
#define __EMS_YSTREAM_H_

int ems_y_readUnsignedByte(char *p_buff
                        , int i_buff_len
                        , int *p_i_buff_offset
                        , unsigned char *p_uc_out);

int ems_y_readByte(char *p_buff
                , int i_buff_len
                , int *p_i_buff_offset
                , char *p_c_out);

int ems_y_readVarLong(char *p_buff
                    , int i_buff_len
                    , int *p_i_buff_offset
                    , long long *p_ll_out);

int ems_y_readString(L7session_ems *p_st_sess
                    , char *p_buff
                    , int i_buff_len
                    , int *p_i_buff_offset
                    , int i_boolean
                    , char **pp_out
                    , int *p_i_out_len);

#endif
